home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 3
/
Gold Medal Software - Volume 3 (Gold Medal) (1994).iso
/
windows
/
editprog
/
newvisda.arj
/
SORT.FRM
< prev
next >
Wrap
Text File
|
1994-04-01
|
3KB
|
129 lines
VERSION 2.00
Begin Form fSort
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
Caption = "Sort Records"
ClientHeight = 2370
ClientLeft = 3090
ClientTop = 3120
ClientWidth = 5070
ControlBox = 0 'False
Height = 2775
Left = 3030
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2412
ScaleMode = 0 'User
ScaleWidth = 5160
Top = 2775
Width = 5190
Begin ListBox cFieldList
BackColor = &H00FFFFFF&
Height = 1395
Left = 240
TabIndex = 1
Tag = " OL"
Top = 360
Width = 1695
End
Begin CommandButton OkayButton
Caption = "&OK"
Default = -1 'True
Enabled = 0 'False
Height = 372
Left = 2340
TabIndex = 3
Top = 420
Width = 1691
End
Begin CommandButton CancelButton
Cancel = -1 'True
Caption = "&Cancel"
Height = 372
Left = 2340
TabIndex = 0
Top = 1320
Width = 1691
End
Begin Label FieldListLabel
BackColor = &H00C0C0C0&
Caption = "Fields:"
Height = 192
Left = 240
TabIndex = 2
Top = 120
Width = 1092
End
End
Option Explicit
Dim FNotFound As Integer
Sub CancelButton_Click ()
Hide
'set the flag for the dynaset/dynagrid form
gfFindFailed = True
End Sub
Sub cExpr_Change ()
If cFieldList <> "" Then
OkayButton.Enabled = True
Else
OkayButton.Enabled = False
End If
End Sub
Sub cFieldList_Click ()
If cFieldList <> "" Then
OkayButton.Enabled = True
Else
OkayButton.Enabled = False
End If
End Sub
Sub cOpsList_Click ()
If cFieldList <> "" Then
OkayButton.Enabled = True
Else
OkayButton.Enabled = False
End If
End Sub
Sub Form_Paint ()
Outlines Me
End Sub
Sub OkayButton_Click ()
Dim i As Integer
On Error GoTo FindErr
FNotFound = False
SetHourGlass Me
SortStr = cFieldList
i = InStr(1, SortStr, " ")
If i > 0 Then
SortStr = "[" + SortStr + "]"
End If
Hide
GoTo FindEnd
FindErr:
If Err <> EOF_ERR Then
ShowError
Resume FindEnd
Else
FNotFound = True
Resume Next
End If
FindEnd:
ResetMouse Me
End Sub